<template>
  <el-table :data="tableData" stripe style="width: 100%">
    <el-table-column prop="date" label="Date" width="180" />
    <el-table-column prop="name" label="Name" width="180" />
    <el-table-column prop="address" label="Address" />
  </el-table>
</template>
<script>
import { getUser } from '@/api/user.js'
export default {
  data() {
    return {
      tableData: []
    }
  },
  created() {
    getUser().then((res) => {
      this.tableData = res.data
      console.log(res)
    })
  }
}
</script>
<style scoped></style>
